package com.woniuxy.springboot.mybatis.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.sql.Timestamp;
import java.util.Date;

@Data
@ApiModel
public class User {
    @ApiModelProperty(value = "用户id")
    private Integer uid;
    @ApiModelProperty(value = "电话")
    private String telephone;
    @ApiModelProperty(value = "密码")
    private String password;
    @ApiModelProperty(value = "姓名")
    private String realname;
    @ApiModelProperty(value = "生日")
    private Timestamp birthday;
    @JSONField(format = "yyyy-MM-dd")
    @ApiModelProperty(value = "创建日期")
    private Date createdate;
    @ApiModelProperty(value = "头像")
    private String headimg;
    @ApiModelProperty(value = "是否可用")
    private Integer available;
    @ApiModelProperty(value = "部门id")
    private Integer deptid;
    @ApiModelProperty(value = "部门")
    private Dept dept;

}
